package com.ctyun.xstore.vod.exception;

public class ServerErrorException extends RuntimeException {

	private static final long serialVersionUID = 1191473873334532230L;

	private final int httpCode;

	public ServerErrorException(int httpCode, String errorMessageFormat, Object... objs) {
		super("HttpCode=" + httpCode + ", errorMsg: " + String.format(errorMessageFormat, objs));
		this.httpCode = httpCode;
	}

	public int getHttpCode() {
		return httpCode;
	}
}
